package com.sise.service;

import com.sise.bean.*;

import java.util.List;

/**
 * @author zj
 */
public interface IOrderService {

    /**
     * 创建订单.
     */
    String create(OrderParameterBean orderParameterBean);

    /**
     * 查询各种状态的订单列表.
     */
    CodeMsg<List<OrderListBean>> list(String openId, String orderStatus, Integer page);

    /**
     * 订单详情.
     */
    OrderDetailBean detail(String orderId);

    /**
     * 对订单的商品进行评价.
     */
    String evaluate(String orderId, Integer productId, Integer productScore);

    /**
     * 订单支付
     **/
    CodeMsg payOrder(OrderStatusBean orderStatusBean);

    /**
     * 取消订单
     **/
    CodeMsg cancelOrder(OrderStatusBean orderStatusBean);

    /**
     * 申请退款
     **/
    CodeMsg refundOrder(OrderStatusBean orderStatusBean);
}
